public class Demo02 {
    public static void main(String[] args) {
        int larger = max(1,3);
        System.out.println(larger);
    }
    public static int max(int number1,int number2){
        int result = -1;
        if(number1 == number2) {
            return 0;//终止方法
        }
        if (number1>number2){
            result = number1;
        }else {
            result = number2;
        }
        return result;//返回值
    }
}
